package com.rules.drools.convert;

import com.rules.drools.entity.ActionInfoEntity;
import com.rules.drools.vo.req.ActionInfoReqVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface ActionInfoConvert {
    ActionInfoConvert INSTANCE = Mappers.getMapper(ActionInfoConvert.class);

    ActionInfoEntity voToEntity(ActionInfoReqVo vo);

    ActionInfoReqVo entityToVo(ActionInfoEntity entity);

    List<ActionInfoReqVo> entityToVo(List<ActionInfoEntity> entitys);

}
